package com.warm.base.design.c_singleton;

/**
 * @Date: 2019/11/21 16:14
 * @Author: LChuang
 * @Description: 单例模式(创建型)
 */
public class Client {

    public static void main(String[] args) {
        Singleton s1 = EnumSingleton.INSTANCE.getInstance();
        Singleton s2 = EnumSingleton.INSTANCE.getInstance();
        System.out.println(s1==s2);
    }

}
